<?php

/**
 * @file
 * @package legacy
 * @version $Id: Enum.class.php 208 2010-07-05 11:55:23Z mikhail.miguel $
**/

if(!defined('XOOPS_ROOT_PATH'))
{
	exit;
}

/**
 * Lenum_Status
**/
interface Lenum_Status
{
	const DELETED = 0;
	const REJECTED = 2;
	const PROGRESS = 5;
	const PUBLISHED = 9;
}
/**
 * Lenum_ProgressStatus
**/
interface Lenum_ProgressStatus
{
	const DELETED = 0;
	const REJECTED = 2;
	const PROGRESS = 5;
	const FINISHED = 9;
}
/**
 * Lenum_GroupRank
**/
interface Lenum_GroupRank
{
	const GUEST = 0;
	const ASSOCIATE = 2;
	const REGULAR = 5;
	const STAFF = 7;
	const OWNER = 9;
}


class Lenum_ImageType
{
	const GIF = 1;
	const JPG = 2;
	const PNG = 3;

	public static function getName(/*** Enum ***/ $ext)
	{
		switch($ext){
		case self::GIF:
			return 'gif';
			break;
		case self::JPG:
			return 'jpg';
			break;
		case self::PNG:
			return 'png';
			break;
		}
	}
}

?>
